package com.xinruke.hostels.reportinterfaces.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassName QueryConditionVO
 * @CreateDate 2019/8/7
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 查询条件VO
 */
@ApiModel("查询条件VO")
@Data
public class QueryConditionVO {
    @ApiModelProperty("字段")
    private String field;

    @ApiModelProperty("字段名称")
    private String fieldName;

    @ApiModelProperty("数据类型：string date select")
    private EConditionDataType dataType;

    @ApiModelProperty("下拉框值")
    private List<String> valueList;

    public QueryConditionVO(String field, String fieldName, EConditionDataType dataType) {
        this.field = field;
        this.fieldName = fieldName;
        this.dataType = dataType;
        this.valueList = valueList;
    }

    public QueryConditionVO(String field, String fieldName, List<String> valueList) {
        this.field = field;
        this.fieldName = fieldName;
        this.dataType = EConditionDataType.SELECT;
        this.valueList = valueList;
    }
}
